//
//  AppDelegate.h
//  OrderSeat
//
//  Created by wangwei on 13-10-4.
//  Copyright (c) 2013年 wangwei. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <CoreLocation/CoreLocation.h>
#import "TabBarController.h"
#import "LocationManager.h"
//#import "WXApi.h"

@protocol AppLocationDelegate

@optional
- (void)locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation *)newLocation;

@end

@class ShopHomeViewController;
@interface AppDelegate : UIResponder <UIApplicationDelegate, UITabBarControllerDelegate,LocationManagerDelegate>

@property (strong, nonatomic) UIApplication *application;
@property (strong, nonatomic) UIWindow *window;

@property (strong, nonatomic) TabBarController *tabBarController;
@property (strong, nonatomic) id<AppLocationDelegate> locactionDelegate;
@property (strong, nonatomic) LocationManager *locationManager;
@property (strong, nonatomic) CLLocation *location;


+ (AppDelegate*)sharedInstance;
+ (void)showMessage:(NSString *)message;
+ (void)shareWithTitle:(NSString *)title andContent:(NSString *)content andImage:(UIImage *)image;
+ (void)shareWithContent:(NSString *)content andImageURL:(NSString *)imageURL andLink:(NSString *)link;

+ (void)changeToNormalTabBar;
+ (void)changeToShopTabBar:(ShopHomeViewController *)homeVC;
- (void) hideTabBar:(UITabBarController *) tabbarcontroller;
- (void) showTabBar:(UITabBarController *) tabbarcontroller;

- (void)startLocation;
+ (BOOL)checkLoginWithDelegate:(id)delegate;

@end
